package com.yifn.demo1;

public class UserServiceProxy {
    UserServiceImpl userService;
    public void setUserService(UserServiceImpl userService) {
        this.userService = userService;
    }

    public void add() {
        log("add");
        userService.add();
    }

    public void delete() {
        log("delete");
        userService.delete();
    }

    public void log(String msg){
        System.out.println("执行了" + msg + "方法");
    }
}
